package com.jiyun.controller;

import com.jiyun.pojo.Announcement;
import com.jiyun.pojo.Enterprise;
import com.jiyun.service.EnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/enterprise")
public class EnterpriseController {
    @Autowired
    private EnterpriseService enterpriseService;
    @GetMapping("/list")
    public List<Enterprise> list(){
        List<Enterprise> list = enterpriseService.list();
        return list;
    }
}
